#ifndef ANIMATION_H
#define ANIMATION_H

#include <SDL/SDL.h>

class Animation {
private:
  int   currentFrame;
  int   frameInc;
  
  int   frameRate;    //Millisec
  long  oldTime;
  
public:
  int   maxFrames;
  bool  oscillate;
  
public:
  Animation();
  
  void  Animate();
  void  SetFrameRate(int rate);
  void  SetCurFrame(int frame);
  
  int GetCurFrame();
};

#endif